using System;
using System.Collections.Generic;
using System.Text;
using IBatisNet.Learning.Domain;
using IBatisNet.Learning.Service;

namespace IBatisNet.Learning
{
	class Program
	{
		static void Main(string[] args)
		{
		    CompanyBasicService service = new CompanyBasicService();

		    foreach (CompanyBasic companyBasic in service.GetAllCompanyBasic())
		    {
		        Console.Write("CompanyId: ");
                Console.Write(companyBasic.CompanyId);
		        Console.Write("\t");
                Console.Write("LastUpdate: ");
                Console.Write(companyBasic.LastUpdate);
                Console.Write("\t");
                Console.Write("CompanyName: ");
                Console.Write(companyBasic.CompanyName);

                Console.WriteLine();
		    }

		    object i = service.GetCompanyBasicById("C1");

		    Console.Read();
		}
	}
}
